package factory.v2;

/**
 * 测试类Application/Client/Main/Test
 */
public class Application {
    public static void main(String[] args) {
       // Apple apple=new Apple();
        //Fruit apple=new Apple();
        Fruit apple= FruitFactory.makeFruit("Apple");
        Fruit banana= FruitFactory.makeFruit("Banana");
        System.out.println(apple.toString());
        System.out.println(banana);

        Fruit kiwi= FruitFactory.makeFruit("Kiwi");
        System.out.println(kiwi);
    }
}
